<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			#img_div img {
				width: 100px;
				height: 100px;
			}

			#img_div {
				width: 1600px;
				height: 100px;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-top: 200px;
			}

			#subject_div {
				width: 100%;
				height: 600px;
				display: flex;
				justify-content: center;
			}

			#shutter_div {
				width: 600px;
				height: 500px;
				overflow: hidden;
			}
		</style>
	</head>
	<body>
		<div id="subject_div">
			<div id="shutter_div">
				<div id="img_div" onmouseenter="img_enter();" onmouseleave="img_leave();">
					<img src="img/lunbo/1.jpeg">
					<img src="img/lunbo/2.jpeg">
					<img src="img/lunbo/3.jpeg">
					<img src="img/lunbo/4.jpeg">
					<img src="img/lunbo/5.jpeg">
					<img src="img/lunbo/6.jpeg">
					<img src="img/lunbo/7.jpeg">
					<img src="img/lunbo/8.jpeg">
					<img src="img/lunbo/9.jpeg">
					<img src="img/lunbo/10.jpeg">
					<img src="img/lunbo/1.jpeg">
					<img src="img/lunbo/2.jpeg">
					<img src="img/lunbo/3.jpeg">
					<img src="img/lunbo/4.jpeg">
					<img src="img/lunbo/5.jpeg">
					<img src="img/lunbo/6.jpeg">
				</div>
			</div>
		</div>

	</body>
	<script type="text/javascript">
		var img_var = document.getElementById('img_div');
		var marginLeft_var = 0;
		var setinterval_name = null;
		var time = null;
		onload = function() {
			setinterval_name = setInterval(pause, 10);
		}
		function pause() {
			if (marginLeft_var == -1000) {
				marginLeft_var = 0;
			}
			marginLeft_var--;
			img_var.style.marginLeft = marginLeft_var + 'px';
			if (marginLeft_var % 100 == 0) {
				clearInterval(setinterval_name);
				time = setTimeout(function() {
					setinterval_name = setInterval(pause, 10);
				}, 1000)
			}
		}
		function img_enter(){
			clearInterval(setinterval_name);
			clearInterval(time);
		}
		function img_leave(){
			setinterval_name = setInterval(pause, 10);
		}
	</script>
</html>
